package com.yanqu.road.server.cmd.cross.config;

import com.yanqu.road.server.cmd.base.AbstractCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.gameplayer.GamePlayer;
import com.yanqu.road.server.manger.ServerGroup2Mgr;
import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.server.protocol.Protocol;

@Cmd(code = Protocol.S_CROSS_SERVER_GROUP_2_NOTIFY_RELOAD, desc = "ServerGroup2Mgr：跨服通知本服reload")
public class ServerGroup2ReloadNotifyCmd extends AbstractCommand {

    @Override
    public boolean parseData(YanQuMessage packet) throws Exception {
        return true;
    }

    @Override
    public void execute(GamePlayer player, YanQuMessage packet) throws Exception {
        ServerGroup2Mgr.reloadServerGroup();
    }

    @Override
    public void sendData(GamePlayer player) {

    }
}
